package com.bdmc.device.mapper;

import com.bdmc.common.annotation.DataColumn;
import com.bdmc.common.annotation.DataPermission;
import com.bdmc.device.domain.DevFacilityRealtime;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdmc.device.domain.bo.DevFacilityRealtimeBo;
import com.bdmc.device.domain.vo.DevFacilityRealtimeVo;
import com.bdmc.common.core.mybatisplus.core.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 满溢设备实时数据Mapper接口
 *
 * @author bdmc
 * @date 2022-03-22
 */
public interface DevFacilityRealtimeMapper extends BaseMapperPlus<DevFacilityRealtime> {

    Page<DevFacilityRealtimeVo> mySelectPage(@Param("page") Page<DevFacilityRealtime> page, @Param("param") DevFacilityRealtimeBo bo);

    @DataPermission({@DataColumn(value = "dp.dept_id")})
    List<DevFacilityRealtimeVo> selectDevFacilityRealtimeList(@Param("param") DevFacilityRealtimeBo facilityRealtime);

    @DataPermission({@DataColumn(value = "dp.dept_id")})
    Map<String, Object> countHomeFacStatus();
}
